package com.example.demo.mapper;

import com.example.demo.entity.Userinfo;
import org.apache.catalina.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * Created by IntelliJ IDEA.
 * User: zm
 * Date: 2023/5/12
 */

@Mapper //需要导入对象
public interface UserMapper {
    Userinfo getUserById(@Param("user_id")Integer id);

    //添加操作
    int add(Userinfo userinfo);

    int addGetId(Userinfo userinfo);

    int upUserName(Userinfo userinfo);

    int delById(@Param("id") Integer id);
}
